package com.bridge.bridge_wd.activity;

import android.content.Intent;
import android.view.View;

import com.bridge.bridge_wd.R;
import com.bridge.bridge_wd.databinding.ActivityTixianChongzhiBinding;
import com.bridge.common.base.BaseActivity;
import com.bridge.common.utils.CalendarTimeUtils;
import com.bridge.common.utils.UltimateBarXUtils;

/**
 * @ClassName TiXianOrChongZhiActivity
 * @Description TODO消息
 * @Author xushufeng
 * @CreateDate 2021/4/11 0011 20:16
 * @Version 1.0
 * @UpdateDate 2021/4/11 0011 20:16
 * @UpdateRemark 更新说明
 */
public class TiXianOrChongZhiActivity extends BaseActivity {
    ActivityTixianChongzhiBinding binding;

    @Override
    protected int layoutId() {
        return R.layout.activity_tixian_chongzhi;
    }

    @Override
    protected void initView() {

        binding = getBind();
        binding.linearWeixin.setOnClickListener(this);
        binding.linearZhifubao.setOnClickListener(this);
        UltimateBarXUtils.setAppBar(this, true, true,R.color.white);
        if (getIntent().getStringExtra("type").equals("1")){
            binding.titleView.setTitle("提现");
            binding.tvTextview.setText("提现");
            binding.edJine.setHint("请输入提现金额");
            binding.tixinaLinear.setVisibility(View.VISIBLE);
            binding.btnRegisn.setText("提现");
        }else{
            binding.titleView.setTitle("充值");
            binding.tvTextview.setText("充值");
            binding.edJine.setHint("请输入充值金额");
            binding.tixinaLinear.setVisibility(View.GONE);
            binding.btnRegisn.setText("充值");
        }
    }

    @Override
    public void onClick(View view) {
        super.onClick(view);
        if (view.getId() == R.id.linear_zhifubao) {
            Intent intent=new Intent(this,ZhiFuBaoActivity.class);
            intent.putExtra("type","1");
            startActivity(intent);
        }
        if (view.getId() == R.id.linear_weixin) {
            Intent intent=new Intent(this,ZhiFuBaoActivity.class);
            intent.putExtra("type","2");
            startActivity(intent);
        }
    }

    @Override
    protected void setListenner() {

    }
}
